package com.k2data.k2app.mapper;

import com.k2data.k2app.domain.SysUser;
import com.k2data.k2app.mybatis.mapper.K2Mapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SysUserMapper extends K2Mapper<SysUser> {
    long insertOfSelective(SysUser sysUser);

    int deleteById(Long id);

    @Override
    int insert(SysUser sysUser);

    SysUser get(Long id);


    @Override
    int updateByPrimaryKeySelective(SysUser sysUser);

    @Override
    int updateByPrimaryKey(SysUser sysUser);

    int updateDeletedFlag(SysUser sysUser);

    int updateLoginFlag(SysUser sysUser);

    List<SysUser> selectUsers(SysUser sysUser);

}